New Functions in Week 9

recode

{dplyr}

Recode a variable

as.numeric

{base}

Coerce a vector to numeric

relevel

{stats}

Reorder Levels of Factor

subset

{base}

Return subsets of vectors, matrices or data frames which meet conditions.

is.element

{base}

Check if a value is element of a vector

log

{base}

log (default base = e)

ifelse

{base}

Return a or b depending on the value of test

prop.table

{base}

Transform frequency table into table of proportions

droplevels

{base}

Drop Unused Levels from Factors

levels

{base}

Get levels of a factor

The end!